package com.typ.member.common.model;

import java.io.Serializable;

/**
 * @author heran
 * @version 1.0, 2019-05-10 13:45
 */
public class PageRequest implements Serializable {
    private int page = 1;
    private int pageSize = 10;

    public PageRequest() {
    }

    public int getPage() {
        return this.page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getOffset() {
        return (long) (this.page - 1) * (long) this.pageSize;
    }
}